package com.candy.candyorder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/2/28 11:21
 * @Description 描述
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`order`")
public class Order extends Model<Order> {

    @TableId(type = IdType.INPUT)
//    @TableId
    private Long id;

    private Long userId;

    private Long proId;

    private Date createTime;

}
